package com.yidu.qianfeng.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yidu.qianfeng.common.bean.finance.Finance;
import com.yidu.qianfeng.common.bean.finance.FinanceCondition;
import com.yidu.qianfeng.common.bean.finance.Income;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("financeMapper")
@Mapper
public interface FinanceMapper extends BaseMapper<Finance> {
    //新增收支
    //public int insertFinance(Finance finance);
    public List<Finance> selectAllFinance(int page , int limit);
    //收支数据数量
    public int selectFinanceCount();
    public List<Finance> selectFinanceByCondition(FinanceCondition condition);
    //修改
    public int updatePersonal(String ids);
    public int updateSubstation(String ids);
}
